package com.swpu.service_sport.service;

import com.swpu.service_sport.entity.SportRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.swpu.service_sport.entity.vo.SportRecordVo;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chaichai
 * @since 2024-02-23
 */
public interface SportRecordService extends IService<SportRecord> {

    void saveUserSportRecord(String openid, SportRecord sportRecord);

    List<SportRecordVo> getUserSportRecord(String openid, Date date);

    void deleteSportRecordById(String openid, String id);

    int getSportCountByDate(String openid, Date queryDate);

    Integer getSportCaloriesByDate(String openid, Date queryDate);
}
